package com.belinda.springboot_mybatis.service.impl;

import com.belinda.springboot_mybatis.mapper.IndexMapper;
import com.belinda.springboot_mybatis.model.Person;
import com.belinda.springboot_mybatis.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexServiceImpl implements IndexService {
    @Autowired
    private IndexMapper indexMapper;

    public List<Person> personList(){
        return indexMapper.personList();
    }
}
